package com.easily.factory;

import java.util.Map;

public class BeanMeta extends ClassMeta {
    private Object proxyObject;

    /**
     * service类型的接口
     */
    private Class<?> interfaceClass;

    public BeanMeta(String name, Class<?> clazz) {
        super(name, clazz);
    }

    public BeanMeta(Class<?> clazz) {
        super(clazz);
    }

    public Object getBean(){
        return this.proxyObject==null? getNewObject():this.proxyObject;
    }

    public Object getProxyObject() {
        return proxyObject;
    }

    public void setProxyObject(Object proxyObject) {
        this.proxyObject = proxyObject;
    }

    public Class<?> getInterfaceClass() {
        return interfaceClass;
    }

    public void setInterfaceClass(Class<?> interfaceClass) {
        this.interfaceClass = interfaceClass;
    }
}
